package com.tang.service.impl;

import com.tang.entity.Blog;
import com.tang.mapper.BlogMapper;
import com.tang.service.BlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tmh
 * @date 2022/12/3 15:51
 * @description
 */
@Service
public class BlogServiceImpl implements BlogService {
    @Autowired
    private BlogMapper blogMapper;

    public Blog selectById(int dbid) {
        return blogMapper.selectById(dbid);
    }

    public List<Blog> list() {
        return blogMapper.getList();
    }
}
